package com.igeek.model.insurance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("insurance")
@ApiModel(value="Insurance对象", description="")
public class Insurance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "支出")
    private Double expenditure;

    @ApiModelProperty(value = "收入")
    private Double income;

    @ApiModelProperty(value = "月份")
    private Date month;

    @ApiModelProperty(value = "评估情况")
    private String comment;

    @ApiModelProperty(value = "保险费用")
    private Double money;

    @ApiModelProperty(value = "保险名称")
    private String name;

    @ApiModelProperty(value = "保险类型")
    private String type;

    @ApiModelProperty(value = "理赔编号")
    private Integer claimsId;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "事故是否发生（1：发生，0：未发生）")
    private Integer ishappened;

    @ApiModelProperty(value = "赔率（0：1%-30%，1：31%-60%，2：61%-100%，3：101%-200%）")
    private BigDecimal rate;


}
